#include "blobs.h"
#include <iostream>
#include <cv.h>
#include <highgui.h>

using namespace std;
using namespace cv;

int main(int argc, char *argv[]) {
    Mat img = imread(argv[0], 0);
    vector<vector > blobs;

    threshold(img, img, 0.5, 1, THRESH_BINARY);
    FindBlobs(img, blobs);

    cout << blobs.size() << endl;

}
